/**
 * Copyright &copy; 2016-2017 <a href="http://git.oschina.net/whoamien/backend_management">Backend Management</a> All rights reserved.
 */
package com.xw.framework.encryption;

/**
 * The Class PublicKeyImpl.
 *
 * @author Xi Wei
 */
public class PublicKeyImpl {
	
	/** The e. */
	String e;
	
	/** The n. */
	String n;
	
	/** The maxdigits. */
	String maxdigits;
	
	/** The script. */
	String script;

	/**
	 * Gets the e.
	 *
	 * @return the e
	 */
	public String getE() {
		return e;
	}

	/**
	 * Sets the e.
	 *
	 * @param e the new e
	 */
	public void setE(String e) {
		this.e = e;
	}

	/**
	 * Gets the n.
	 *
	 * @return the n
	 */
	public String getN() {
		return n;
	}

	/**
	 * Sets the n.
	 *
	 * @param n the new n
	 */
	public void setN(String n) {
		this.n = n;
	}

	/**
	 * Gets the maxdigits.
	 *
	 * @return the maxdigits
	 */
	public String getMaxdigits() {
		return maxdigits;
	}

	/**
	 * Sets the maxdigits.
	 *
	 * @param maxdigits the new maxdigits
	 */
	public void setMaxdigits(String maxdigits) {
		this.maxdigits = maxdigits;
	}

	
	/**
	 * Gets the script.
	 *
	 * @return the script
	 */
	public String getScript() {
		return script;
	}

	/**
	 * Sets the script.
	 *
	 * @param script the new script
	 */
	public void setScript(String script) {
		this.script = script;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("E: ").append(getE()).append(", ");
        sb.append("Maxdigits: ").append(getMaxdigits()).append(", ");
        sb.append("N: ").append(getN());
        return sb.toString();
    }
}
